DefaultLocalCharacteristicWrapper

class DefaultLocalCharacteristicWrapper(characteristic: CBMutableCharacteristic) : LocalCharacteristicWrapper

Constructors

Link copied to clipboard
constructor(characteristic: CBMutableCharacteristic)
constructor(uuid: UUID, properties: Set<CharacteristicProperty>, encryptedNotification: Boolean, permissions: Set<LocalCharacteristic.Permission>)

Properties

Link copied to clipboard
open override val identity: AttributeIdentity

Identity used to correlate this characteristic with incoming peripheral-manager callbacks.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val uuid: CBUUID

Functions

Link copied to clipboard
open override fun addDescriptor(descriptor: LocalDescriptorWrapper)

Adds a LocalDescriptorWrapper to the characteristic

Link copied to clipboard
open override fun addToService(service: CBMutableService)

Adds the characteristic to a CBMutableService

Link copied to clipboard
open override fun updateValue(serverWrapper: KalugaBluetoothServerWrapper, value: NSData, centrals: List<CBCentral>): Boolean

Updates the value of the characteristic for the given centrals through a KalugaBluetoothServerWrapper